package com.hkd.user_service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hkd.common.api.ApiResponse;
import com.hkd.user_service.api.SysRoleMenuService;
import com.hkd.user_service.api.entity.SysRoleMenu;
import com.hkd.user_service.mapper.SysRoleMenuMapper;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author HKD
 * @date 2022/8/20 19:09
 */
@RestController
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements SysRoleMenuService {
    @Override
    public ApiResponse insertAll(List<SysRoleMenu> roleMenus) {
        this.saveBatch(roleMenus);
        return ApiResponse.ok();
    }
}
